package com.ruis.kotboot.api.service

import org.springframework.stereotype.Service

@Service
class RuisCacheService {

    /*@Autowired
    private val userService: SysUserService? = null
    @Autowired
    private val paramService: SysParamService? = null

    @Cacheable(value = [CacheNames.SYS_USER],key = "'uid-'+#uid")
    fun findUserById(uid:Long): SysUser?{
        return userService?.findID(uid)
    }
    @Cacheable(value = [CacheNames.SYS_USER],key = "'name-'+#name")
    fun findUserByName(name:String):SysUser?{
        return userService?.findName(name)
    }
    @Cacheable(value = [CacheNames.SYS_USER],key = "'wxmpid-'+#wxmpid")
    fun findUserByWxmpid(wxmpid:String):SysUser?{
        return userService?.findWxmpid(wxmpid)
    }

    @Cacheable(value = [CacheNames.SYS_PARAM],key = "'tp-'+#types+'key-'+#key")
    fun findParamByKey(types:String,key:String): SysParam?{
        return paramService?.findParam(types,key)
    }

    @Cacheable(value = [CacheNames.SYS_PARAM],key = "'tp-'+#types+'value-'+#value")
    fun findParamByValue(types:String,value:String):SysParam?{
        return paramService?.findParamv(types,value)
    }*/
}